// ... 其他导入代码 ...

class MainMenu extends Phaser.Scene {
  create() {
    // 背景设置
    this.add.image(0, 0, 'cafe_bg')
      .setOrigin(0)
      .setDisplaySize(1080, 1920);
    
    // 标题文字
    const title = this.add.bitmapText(540, 300, 'pixel_font', 'MEOW CAFÉ', 64)
      .setOrigin(0.5)
      .setTint(0xFFD700);
    
    // 按钮组
    const buttons = [
      { text: '开始游戏', y: 800, icon: 'hot_cocoa', sound: 'meow' },
      { text: '猫咪图鉴', y: 950, icon: 'cat_book', sound: '8bit_click' },
      { text: '设置', y: 1100, icon: 'settings', sound: '8bit_click' }
    ];
    
    buttons.forEach(btn => {
      const button = this.add.image(540, btn.y, 'wooden_button')
        .setInteractive()
        .on('pointerdown', () => {
            if (btn.text === '返回') {
                this.scene.get('CafeScene').sceneManager.backToCafe();
            }
            switch(btn.text) {
              case '开始游戏':
                this.scene.start('CafeScene');
                break;
              case '猫咪图鉴':
                this.scene.start('CatAlbum');
                break;
            }
        });
    });
  }
}